package com.xros.demo.gamedataserver.utils;

/**
 * @Author: mzp
 * @Description: 数组工具类
 * @Date: 2024/4/7 16:29
 * @Version: 1.0
 */
public class ArrayUtils {
    public static String getBytesArrStr(byte[] bytes) {
        String result = "[";

        for (int i = 0; i < bytes.length; i++) {
            result += bytes[i];

            if (i < bytes.length - 1) {
                result += ",";
            } else {
                result += "]";
            }
        }

        return result;
    }



}
